
import fetch from 'common/src/utils/fetch'
//分页查询轮次信息
function getTurnList(data) {//轮次列表
    return fetch({
        url: '/api/electionservice/elcMutualRound/page',
        method: 'post',
        data: data
    });
};
function addRule(data){//添加
 return fetch({
     url:"/api/electionservice/elcMutualRound",
     method:'put',
     data
 })
}
function updateRule(data){//修改
    return fetch({
        url:"/api/electionservice/elcMutualRound",
        method:'post',
        data
    })
}
function getRoundMessage(roundId) {//根据id查询轮次信息
    return fetch({
        url: `/api/electionservice/elcMutualRound/${roundId}`,
        method: 'get'
    });
}
function deleterTurn(data){//删除轮次
    return fetch ({
        url:'/api/electionservice/elcMutualRound',
        method:'delete',
        data
    })
}
export default {
    getTurnList,
    addRule,
    getRoundMessage,
    updateRule,
    deleterTurn
}